CREATE TABLE [dbo].[TDMODI_DOCU]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[NU_CORR_MODI] [dbo].[TD_VC_008] NOT NULL,
[NU_SECU] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TDMODI_DO__NU_SE__3FBB6990] DEFAULT ((0)),
[FE_MODI] [dbo].[TD_DT_001] NOT NULL,
[FA_TIPO_CAMB] [dbo].[TD_NU_015_006] NOT NULL,
[CO_TIPO_DOCU] [dbo].[TD_VC_003] NULL,
[NU_DOCU_CLIE] [dbo].[TD_VC_020] NOT NULL,
[CO_CLIE] [dbo].[TD_VC_020] NOT NULL,
[CO_TIPO_OPER] [dbo].[TD_VC_003] NOT NULL,
[CO_ESTA_DOCU] [dbo].[TD_VC_003] NOT NULL,
[CO_ESTA_ACTU] [dbo].[TD_VC_003] NOT NULL,
[ST_CONT] [dbo].[TD_VC_001_INTE] NOT NULL CONSTRAINT [DF__TDMODI_DO__ST_CO__40AF8DC9] DEFAULT ('N'),
[NU_PROC] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TDMODI_DO__NU_PR__4297D63B] DEFAULT ((0)),
[CO_UNID_CONC] [dbo].[TD_VC_003] NULL,
[CO_BANC] [dbo].[TD_VC_003] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDMODI_DO__CO_US__438BFA74] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDMODI_DO__FE_US__44801EAD] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDMODI_DO__CO_US__457442E6] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDMODI_DO__FE_US__4668671F] DEFAULT (getdate()),
[DE_OBSE] [dbo].[TD_VC_100] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDMODI_DOCU] WITH NOCHECK ADD CONSTRAINT [CK__TDMODI_DO__ST_CO__41A3B202] CHECK NOT FOR REPLICATION (([ST_CONT]='P' OR [ST_CONT]='N'))
GO
ALTER TABLE [dbo].[TDMODI_DOCU] ADD CONSTRAINT [PK__TDMODI_D__3B783CEC7425102E] PRIMARY KEY CLUSTERED  ([CO_EMPR], [NU_CORR_MODI], [NU_SECU], [FE_MODI]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDMODI_DOCU] ADD CONSTRAINT [FK__TDMODI_DO__CO_EM__558B7A75] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
